<template>
  <el-container style="height: 100%">
    <nav-bar :collapse="isCollapse"></nav-bar>
    <el-container>
      <el-header>
        <head-bar></head-bar>
      </el-header>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<style lang="scss">
.el-header {
  display: flex;
  align-items: center;
  background-color: $theme-color;
  border-bottom-style: double;
  border-width: 2px;
}

.el-aside {
  background-color: $theme-color;
}

.el-main {
  .cust-tab {
    display: flex;
    justify-content: left;
  }
}
</style>
<script>
import HeadBar from "./HeadBar/HeadBar";
import NavBar from "./NavBar/NavBar";
import { mapState } from "vuex";
export default {
  name: "Main",
  components: {
    HeadBar,
    NavBar
  },
  computed: {
    ...mapState({
      isCollapse: state => state.tab.isCollapse
    })
  }
};
</script>
